﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProductSNUnion.aspx.cs" Inherits="ProductManage_ProductSNUnion" Title="关联腔体与成品序列号" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
            <!--
        document.onkeydown = function() {
            if (event.keyCode == 13 && event.srcElement.type == "text") {
                event.keyCode = 9;
            }
        }
            //-->
    </script>

    <div style="text-align: center;">
        <br />
        <br />
        <br />
        <br />
        <br />
        <div style="text-align: center;">
            <table style="width: 60%; border: solid 1px black; margin: 0 auto;">
                <tr>
                    <td style="width: 40%;">
                        请扫描产品的类型：
                    </td>
                    <td style="width: 40%;">
                        <asp:TextBox ID="TextBox6" runat="server" TabIndex="1" onfocus="javascript:this.select();"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox6"
                            ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                    </td>
                    <td rowspan="3" style="width: 20%;">
                        <asp:Button ID="Button2" runat="server" Text="关 联" ValidationGroup="VGroup1" OnClick="Button2_Click"
                            TabIndex="5" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 40%;">
                        请扫描腔体序列号：
                    </td>
                    <td style="width: 40%;">
                        <asp:TextBox ID="TextBox1" runat="server" TabIndex="2"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                            ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 40%;">
                        请扫描成品序列号：
                    </td>
                    <td style="width: 40%;">
                        <asp:TextBox ID="TextBox2" runat="server" TabIndex="3" OnTextChanged="TextBox2_TextChanged"
                            AutoPostBack="True"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
                            ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </table>
            <asp:Panel ID="Panel3" runat="server">
                <table style="width: 60%; border: solid 1px black; margin: 0 auto;">
                    <tr>
                        <td style="width: 40%;">
                            扫描客户成品代码：
                        </td>
                        <td style="width: 40%;">
                            <asp:TextBox ID="TextBox5" runat="server" TabIndex="4"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5"
                                ErrorMessage="*" ValidationGroup="VGroup1" Enabled="False"></asp:RequiredFieldValidator>
                        </td>
                        <td style="width: 20%;">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:CollapsiblePanelExtender ID="Panel3_CollapsiblePanelExtender" runat="server"
                Enabled="True" TargetControlID="Panel3" CollapsedSize="0" SuppressPostBack="true"
                ExpandControlID="Panel2" ExpandDirection="Vertical" CollapseControlID="Panel2"
                ScrollContents="false" TextLabelID="Label6" CollapsedText="Show Details..." ExpandedText="Hide Details">
            </asp:CollapsiblePanelExtender>
            <asp:Panel ID="Panel2" runat="server">
                ---------------------中兴产品关联时请隐藏客户成品代码的录入：--------------------<asp:Label ID="Label6"
                    runat="server" Text="Label">
                </asp:Label>------<asp:LinkButton ID="LinkButton1" runat="server">打开/折叠</asp:LinkButton>
            </asp:Panel>
        </div>
        <br />
        <br />
        <div style="text-align: center;">
            <br />
            <table style="width: 60%; border: solid 1px black; margin: 0 auto;">
                <tr>
                    <td>
                        查询腔体序列号是否已经关联：
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3"
                            ErrorMessage="*" ValidationGroup="VGroup2"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:Button ID="Button3" runat="server" Text="查 询" ValidationGroup="VGroup2" OnClick="Button3_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:GridView ID="GridView1" runat="server" BackColor="White" Width="100%" BorderColor="White"
                            BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None"
                            AutoGenerateColumns="False">
                            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                            <Columns>
                                <asp:BoundField DataField="PackageProductSN" HeaderText="成品序列号" />
                                <asp:BoundField DataField="ProductSN" HeaderText="腔体序列号" />
                                <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                                <asp:BoundField DataField="UserID" HeaderText="操作员" />
                                <asp:BoundField DataField="UnionTime" HeaderText="关联时间" />
                            </Columns>
                            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
            <br />
            <br />
            <br />
            <table style="width: 60%; border: solid 1px black; margin: 0 auto;">
                <tr>
                    <td>
                        查询成品序列号是否已经关联：
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4"
                            ErrorMessage="*" ValidationGroup="VGroup3"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:Button ID="Button4" runat="server" Text="查 询" ValidationGroup="VGroup3" OnClick="Button4_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:GridView ID="GridView2" runat="server" BackColor="White" Width="100%" BorderColor="White"
                            BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None"
                            AutoGenerateColumns="False">
                            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                            <Columns>
                                <asp:BoundField DataField="PackageProductSN" HeaderText="成品序列号" />
                                <asp:BoundField DataField="ProductSN" HeaderText="腔体序列号" />
                                <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                                <asp:BoundField DataField="UserID" HeaderText="操作员" />
                                <asp:BoundField DataField="UnionTime" HeaderText="关联时间" />
                            </Columns>
                            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
                                <br />
            <br />
            <br />
            <div style="clear: both;">
                注1：二维码判定规则为，长度大于35个字符；<br />
                拆分规则为，成品序列号从第19字符开始取12个字符，客户成品代码从第6字符开始取13个字符。
            </div>
            <br />
            <br />
            <br />
        </div>
        <br />
    </div>
</asp:Content>
